package bd.proiect;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/*
 *  	Formular de adaugare a unori informmatii generale despre 
 *  	plante in baza de date.
 *  	Elemente de layout simple.
 */

public class AddGeneral extends Activity{
	
	@Override
	  public void onCreate(Bundle savedInstanceState) {
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.addgeneral); 
		  
	     Button AddFamilyButton = (Button) findViewById(R.id.add_family);
	     AddFamilyButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(AddGeneral.this, AddFamily.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button AddOriginButton = (Button) findViewById(R.id.add_origin);
	     AddOriginButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(AddGeneral.this, AddOrigin.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button AddGenusButton = (Button) findViewById(R.id.add_genus);
	     AddGenusButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(AddGeneral.this, AddGenus.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button AddSpeciesButton = (Button) findViewById(R.id.add_species);
	     AddSpeciesButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(AddGeneral.this, AddSpecies.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	}

}
